<div id="view-content">
    <div class="row-fluid">
        <a href="<?= $this->url(array(), 'admin-faq-add'); ?>" class="btn btn-success"><i class="icon-white icon-plus-sign"></i> Add New</a>
        <div>
            <table class="table table-condensed table-hover well">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>FAQs</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $index = 1;
                    foreach ($this->allQues as $ques):
                        ?>
                        <tr>
                            <td><h1><?= $index ?></h1></td>
                            <td>
                                <b><?= $ques['question'] ?></b><br>
                                <?= htmlspecialchars_decode($ques['answer']) ?>
                            </td>
                            <td>
                                <a class="btn btn-success" href="<?= $this->url(array('id' => $ques['id']), 'admin-faq-edit'); ?>"><i class="icon-white icon-edit"></i></a>
                            </td>
                        </tr>

                        <?php
                        $index++;
                    endforeach;
                    ?>
                </tbody>
            </table>
        </div>
    </div>
</div>